﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IdentityModel.Tokens;


namespace Microsoft.IdentityModel.OAuth
{
    public class SymmetricSigningCredentials : SigningCredentials
    {
        public SymmetricSigningCredentials(string base64EncodedKey)
            : this(Convert.FromBase64String(base64EncodedKey))
        {}
        public SymmetricSigningCredentials(byte[] key)
            : base(new InMemorySymmetricSecurityKey(key),
               SecurityAlgorithms.HmacSha256Signature, SecurityAlgorithms.Sha256Digest)
        {
        }
    }
}
